package cn.powerone.scm.domain;

import java.math.BigDecimal;
import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Getter;
import lombok.Setter;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import cn.powerone.common.annotation.Excel;
import cn.powerone.common.core.domain.BaseEntity;
import org.apache.poi.hpsf.Decimal;

/**
 * 项目管理对象 scm_projects
 * 
 * @author PowerOne
 * @date 2025-06-23
 */
@Setter
@Getter
public class ScmProjects extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** $column.columnComment */
    private Long projectId;

    /** 项目编号 */
    @Excel(name = "项目编号")
    private String projectCode;

    /** 项目名称 */
    @Excel(name = "项目名称")
    private String projectName;

    /** 客户ID */
    @Excel(name = "客户ID")
    private Long customerId;

    /** 客户名称 */
    @Excel(name = "客户名称")
    private String customerTitle;

    /** 客户联系人ID */
    @Excel(name = "客户联系人ID")
    private Long customerContactId;

    /** 客户联系人 */
    @Excel(name = "客户联系人")
    private String customerContactName;

    /** 项目负责人ID */
    @Excel(name = "项目负责人ID")
    private Long ownerUserId;

    /** 项目负责人名称 */
    @Excel(name = "项目负责人名称")
    private String ownerUserName;

    /** 我的币种 */
    @Excel(name = "我的币种")
    private String myCurrency;

    /** 客户币种 */
    @Excel(name = "客户币种")
    private String customerCurrency;

    /** 供应商币种 */
    @Excel(name = "供应商币种")
    private String supplierCurrency;

    /** 客户币种汇率 */
    @Excel(name = "客户币种汇率")
    private BigDecimal customerCurrencyRate;

    /** 客户币种汇率 */
    @Excel(name = "客户币种汇率")
    private BigDecimal supplierCurrencyRate;

    /** 开始日期 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "开始日期", width = 30, dateFormat = "yyyy-MM-dd")
    private Date startDate;

    /** 结束日期 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "结束日期", width = 30, dateFormat = "yyyy-MM-dd")
    private Date endDate;

    /** 项目状态 */
    @Excel(name = "项目状态")
    private Long projectStatus;

    /** 采购类型 */
    @Excel(name = "采购类型")
    private Long purchaseCategory;

    /** 需求类型 */
    @Excel(name = "需求类型")
    private Long demandType;

    /** 预算金额 */
    @Excel(name = "预算金额")
    private BigDecimal budget;


    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("projectId", getProjectId())
            .append("projectCode", getProjectCode())
            .append("projectName", getProjectName())
            .append("customerId", getCustomerId())
            .append("customerTitle", getCustomerTitle())
            .append("customerContactId", getCustomerContactId())
            .append("customerContactName", getCustomerContactName())
            .append("ownerUserId", getOwnerUserId())
            .append("ownerUserName", getOwnerUserName())
            .append("startDate", getStartDate())
            .append("endDate", getEndDate())
            .append("projectStatus", getProjectStatus())
            .append("purchaseCategory", getPurchaseCategory())
            .append("demandType", getDemandType())
            .append("budget", getBudget())
            .append("remark", getRemark())
            .append("createBy", getCreateBy())
            .append("createTime", getCreateTime())
            .append("updateBy", getUpdateBy())
            .append("updateTime", getUpdateTime())
            .toString();
    }
}
